package cc.mrbird.febs.system.dao;

import cc.mrbird.febs.system.domain.THouse;
import cc.mrbird.febs.system.vo.THouseVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author dtwei
 */
@Mapper
public interface THouseMapper extends BaseMapper<THouse> {

    IPage<THouseVO> findHouseDetails(Page<THouse> page, @Param("house") THouse tHouse, @Param("areaName") String areaName);

    int coundHouseByAreaIds(@Param("areaIds") List<String> areaIds);

    List<THouse> selectAllHouses();

    void insertDetail(@Param("house") THouse tHouse);
}
